<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../assets/plugins/jquery/jquery.min.js"></script>
    <script src="croods-1.3.3.js"></script>
</head>
<body>

asd
<script>
  //alert(croods);

  $.ajax({
      url: 'http://61.190.70.197:8800/wst-gateway/user/getUserInfoByToken',
      data:{
          token: '53af780d5ac64271b69124e16efccee0',
          serviceId: "1",
          roleCode: ""
      },
      headers:{
          'Access-Control-Allow-Origin': '*',
          "Content-Type": "application/x-www-form-urlencoded"
      },
      type:'GET',
      dataType:'json',
      success:function(data){
          alert(data);//弹窗


      },

      error:function(data){
          alert('error');//弹窗
          //TODO ........
      }
  })

  croods.customPlugin({
    action: "UserPlugin.login",
    params: {},
    success: function (res) {
        alert(res.token);

        $.ajax({
            url:'https://www.ahzwfw.gov.cn/wst-gateway/user/getUserInfoByToken',
            data:{
                token: res.token,
                serviceId: "1",
                roleCode: ""
            },
            type:'get',
            dataType:'json',
            success:function(data){
                alert(data);//弹窗


            },

            error:function(data){
                alert('error');//弹窗
                //TODO ........
            }
        })


      //alert(res);
    },
    fail: function (msg) {
      alert(2);
    },
  });
</script>
</body>
</html>
